package arm.attestation.bean;

import java.util.List;

public class Post
{
    private Long id;
    private String name;
    private List<PostMetric> metricList;
    private Integer keyWorkplace;
    private Integer numberWorkplace;

    public Post(Long id, String name, Integer keyWorkplace, Integer numberWorkplace) {
        this.id = id;
        this.name = name;
        this.keyWorkplace = keyWorkplace;
        this.numberWorkplace = numberWorkplace;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<PostMetric> getMetricList() {
        return metricList;
    }

    public void setMetricList(List<PostMetric> metricList) {
        this.metricList = metricList;
    }

    public int getMetricSize() {
        return getMetricList().size();
    }

    public Integer getKeyWorkplace() {
        return keyWorkplace;
    }

    public void setKeyWorkplace(Integer  keyWorkplace) {
        this.keyWorkplace = keyWorkplace;
    }

    public Integer getNumberWorkplace() {
        return numberWorkplace;
    }

    public void setNumberWorkplace(Integer numberWorkplace) {
        this.numberWorkplace = numberWorkplace;
    }
}